package com.monkey.luffer.springboot.demo.basis.SPI.Impl;

import com.monkey.luffer.springboot.demo.basis.SPI.OrderService;
import com.monkey.luffer.springboot.demo.basis.demo.BaseBO;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: dengkaibing
 * @Description:
 * @Date: 2021/12/26 14:52
 * @company 翼支付
 */
@Slf4j
public abstract class AbstractOrder implements OrderService {

    @Override
    public void creatOrder(){
        OrderBO orderBO=new OrderBO();
        orderBO.setAmt(12L);
        orderBO.setName("dkb");
        this.abstractMethod(orderBO);
        log.info("标准下单模式下单");
    }

    @Override
    public void verificationOrderInfo(){
        log.info("标准校验数据信息");
    }

    public void abstractMethod(BaseBO baseBO){
        OrderBO orderBO=(OrderBO)baseBO;
        log.info("orderBaseBo:{}",orderBO);
        log.info("抽象类方法");
    }
}
